(function(angular) {
    'use strict';

    angular.module('app.roles')
        .service('RolesService', ['restBaseUrl', '$http', RolesService]);

    function RolesService (restBaseUrl, $http) {
        var apiUrl = restBaseUrl + 'RolService.svc/';

        this.read = function() {
            var url = apiUrl + 'Listar';
            return $http.get(url);
        };
    }
})(window.angular);